#include "multiplicity.h"

Multiplicity::Multiplicity (unsigned int aMin, unsigned int aMax) : min(aMin), max(aMax) {
}

Multiplicity::~Multiplicity () {
}

bool Multiplicity::isWithin (unsigned int value) {
	if (value <= max && value >= min) {
		return true;
	}
return false;
}

void Multiplicity::print(std::ostream& out) {
	if (min == 0 && max == INF) out << "*";
	else if (min == 0 && max == 1) out << "?";
	else if (min == 1 && max == INF) out << "+";
	else out << "";
}
